package com.jieshuibao.model.domain;

import java.util.List;

import com.jieshuibao.model.db.Policy;
import com.jieshuibao.model.db.QuestionUserEx;
import com.jieshuibao.model.db.UserSearch;

public class SearchResponse {
	
	private String code = "1";
	
	private String des = "";
	
	private List<Article> articles;
	
	private List<QuestionUserEx> questions;
	
	private List<UserSearch> userSearchs;
	
	private List<Policy> policies;
	
	private List<?> videos;
	
	private List<?> datas;
	
	private Object obj;
	
	private int sinceId;
	
	private int rows;
	
	private int maxId;
	
	private Double amount;
	
	
	public List<Policy> getPolicies() {
		return policies;
	}

	public void setPolicies(List<Policy> policies) {
		this.policies = policies;
	}

	public List<?> getVideos() {
		return videos;
	}

	public void setVideos(List<?> videos) {
		this.videos = videos;
	}

	public int getSinceId() {
		return sinceId;
	}

	public void setSinceId(int sinceId) {
		this.sinceId = sinceId;
	}

	public int getRows() {
		if(datas != null){
			return datas.size();
		}
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public int getMaxId() {
		return maxId;
	}

	public void setMaxId(int maxId) {
		this.maxId = maxId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDes() {
		return des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	public List<Article> getArticles() {
		return articles;
	}

	public void setArticles(List<Article> articles) {
		this.articles = articles;
	}

	public List<QuestionUserEx> getQuestions() {
		return questions;
	}

	public void setQuestions(List<QuestionUserEx> questions) {
		this.questions = questions;
	}

	public List<UserSearch> getUserSearchs() {
		return userSearchs;
	}

	public void setUserSearchs(List<UserSearch> userSearchs) {
		this.userSearchs = userSearchs;
	}

	public List<?> getDatas() {
		return datas;
	}

	public void setDatas(List<?> datas) {
		this.datas = datas;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}
}
